// JavaScript Document

function alertFn(text, isInit){
	alert("00");
	if(isInit == '1'){
		var html = '<div class="alert" id="alertID" align="center">'
			+'<table class="alert" align="center" border="0" cellspacing="0" cellpadding="0">'
			+'<tr class="alerttitle">'
			+'<td>来自服务器的消息：^^<button class="alertbtn" onClick="alertFn('')">关闭</button></td>'
			+'</tr>'
			+'<tr class="alerttext">'
			+'<td id="alerttext"></td>'
			+'</tr>'
			+'</table>'
			+'</div>';
		$("#userDefinedHTMLdiv").html(html);
	}
	if(text!=""){
		$("#alerttext").html(text);
	}
	$("#alertID").fadeToggle(500);
}


